package mortal.game.manager
{
	import com.gengine.global.*;
	
	public class LayerManager extends Object
	{
		public static var sceneLayer:UILayer;
		public static var uiLayer:UILayer;
		public static var windowLayer:WindowLayer;
		public static var topLayer:UILayer;
		public static var popupLayer:UILayer;
		public static var guideLayer:UILayer;
		public static var alertLayer:UILayer;
		public static var dragLayer:UILayer;
		public static var toolTipLayer:UILayer;
		public static var msgTipLayer:UILayer;
		public static var issmBtnLayer:UILayer;
		public static var highestLayer:UILayer;
		
		public function LayerManager()
		{
		}
		
		public static function init() : void
		{
			sceneLayer = new UILayer();
			sceneLayer.tabChildren = false;
			Global.stage.addChild(sceneLayer);
			uiLayer = new UILayer();
			uiLayer.tabChildren = false;
			Global.stage.addChild(uiLayer);
			issmBtnLayer = new UILayer();
			issmBtnLayer.tabChildren = false;
			Global.stage.addChild(issmBtnLayer);
			windowLayer = new WindowLayer();
			windowLayer.tabChildren = false;
			Global.stage.addChild(windowLayer);
			topLayer = new UILayer();
			topLayer.tabChildren = false;
			Global.stage.addChild(topLayer);
			popupLayer = new UILayer();
			popupLayer.tabChildren = false;
			Global.stage.addChild(popupLayer);
			guideLayer = new UILayer();
			guideLayer.tabChildren = false;
			Global.stage.addChild(guideLayer);
			alertLayer = new UILayer();
			alertLayer.tabChildren = false;
			Global.stage.addChild(alertLayer);
			dragLayer = new UILayer();
			dragLayer.tabChildren = false;
			Global.stage.addChild(dragLayer);
			CursorManager.init(Global.stage);
			MsgManager.addBroadStage(Global.stage);
			MsgManager.addIssmNoticeItemPanelStage(Global.stage);
			msgTipLayer = new UILayer();
			msgTipLayer.tabChildren = false;
			Global.stage.addChild(msgTipLayer);
			toolTipLayer = new UILayer();
			toolTipLayer.tabChildren = false;
			Global.stage.addChild(toolTipLayer);
			highestLayer = new UILayer();
			Global.stage.addChild(highestLayer);
		}
	}
}